<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>${webname}后台管理登陆</title>
	<link href="${request.getContextPath()}/themes/admin/css/adminBasis.css" rel="stylesheet" type="text/css" />
	<link href="${request.getContextPath()}/themes/admin/css/jquery-ui.css" rel="stylesheet" type="text/css" />
	<script src="${request.getContextPath()}/themes/admin/js/jquery.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/themes/admin/js/area.js"></script>
	<script type="text/javascript">
  	  function check_form(){
		check1();
		check2();
		if(check1() &&  check2()){
			return true;
		}else{
			return false;
		}
  	  }
	  function check1(){
	  	//判断密码
	  	var pass_reg = /^(?![0-9A-Za-z]+$)[0-9A-Za-z~!@#$%^&*()]{10,}$/ ;
	  	var number_reg = /[0-9]+/;
	  	var firstpwdb = $(".passwordb");
	  	if(!pass_reg.exec($('#firstpwd').val())){
	  		firstpwdb.html('密码长度至少为10位，请使用数字字母特殊字符(~!@#$%^&*())的组合');
	  		return false;
	  	}else if($('#password').val() == $('#firstpwd').val()){
	  		firstpwdb.html('原密码和新修改的密码要求不一致');
	  		return false;
	  	}else if(!number_reg.test($('#firstpwd').val())){
	  		firstpwdb.html('密码长度至少为10位，请使用数字字母特殊字符(~!@#$%^&*())的组合');
    		return false;
	  	}else{
	  		firstpwdb.html('');
	  		return true;
	  	}
	  }
	  function check2(){
		  var secondpwdb = $(".passwordb");
		  var pass1 = $('#firstpwd').val(); 
		  var pass2 = $('#secondpwd').val(); 
		  if(pass1 == pass2){
			  secondpwdb.html('');
			  return true;
		  }else{
			  secondpwdb.html('两次密码输入不一致');
		      return false; 
		  }
	  }
  </script>
</head>
<body style="background: #fff url(${request.getContextPath()}/themes/admin/images/login_bg.png) repeat-x top; overflow:hidden;">
<div id="login">
	<div id="login_header">
		<h1 class="login_logo">
			<img src="${request.getContextPath()}/themes/admin/images/login_logo.gif" />
		</h1>
	</div>
	<div id="login_content">
		<div class="loginForm">
			<form name="modifyform" method="post" action="${request.getContextPath()}/user/modifypassword.html" onsubmit="return check_form();">
				<!-- v1.6.7.1 安全优化 sj 2013-11-18 start -->
				<#if msg??><font color="#FF0000" size="2">${msg}</font></#if>
				<div class="passwordb"></div>
				<!-- v1.6.7.1 安全优化 sj 2013-11-18 end -->
				<p>
					<label>用户名:</label>
					${username}
				</p>
				<p>
					<label>原密码:</label>
					<input type="password" name="password" id="password" value="${password}"  style="width:145px;" disabled="true"/>
				</p>
				<p>
					<label>新密码:</label>
					<input type="password" name="firstpwd" id="firstpwd" style="width:145px;" onblur="check1()">
				</p>
				<p>
					<label>确定密码:</label>
					<input type="password" name="secondpwd" id="secondpwd" style="width:145px;" onblur="check2()">
				</p>
				<div class="module_submit jpl" >
					<input type="hidden" name="username" value="${username}" />
					<input type="hidden" name="user_id" value="${user_id?c}" />
					<input type="submit"  name="reset" value="确认提交" class="input-button"/>
				</div>
			</form>
		</div>
		<div class="login_banner"><img src="${request.getContextPath()}/themes/admin/images/login_banner.jpg" /></div>
		<div class="login_main"></div>
		
	</div>
	<div id="login_footer">
		杭州融都科技@P2P行业领导者&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;联系电话：0571-85135916&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;网址：http://www.erongdu.com
	</div>
</div>

</body>
</html>